package com.zb.service.impl;

import com.zb.dao.ProjectInfoDao;
import com.zb.entity.ProjectInfo;
import com.zb.service.ProjectInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ProjectInfoServiceImpl implements ProjectInfoService {
   @Autowired
    private ProjectInfoDao projectInfoDao;

    @Override
    public List<ProjectInfo> listProjectInfoByStatus(int status) {
        return projectInfoDao.listProjectInfoByStatus(status);
    }

    @Override
    public ProjectInfo getProjectInfoById(int id) {
        return projectInfoDao.getProjectInfoById(id);
    }

    @Override
    public int updateProjectInfo(int status, int id) {
        return projectInfoDao.updateProjectInfo(status,id);
    }

    @Override
    public List<ProjectInfo> listProjectInfo() {
        return projectInfoDao.listProjectInfo();
    }
}
